<div class="menu">
<?php  echo $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
</div>
<div class="experiencias index">
	 <div align="center"><?php echo $this->Html->image('experiencias_titulo.png', array('alt'=> __('Experiencias', true), 'border' => '0'));?></div>
	<?php echo $this->Html->link($this->Html->image('add_experiencia.png', array('alt'=> __('Agregar Experiencia', true), 'border' => '0')),
												'../experiencias/add/',array('escape' => false));?>
	
	<h4><?php __('Usuario: '.$usuario['User']['nombre_completo']);?></h4>
	
	<table class="tabla_formulario"  cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('empresa');?></th>
			<th><?php echo $this->Paginator->sort('fecha_ingreso');?></th>
			<th><?php echo $this->Paginator->sort('fecha_retiro');?></th>
			<th><?php echo $this->Paginator->sort('actualmente');?></th>
			<th><?php echo $this->Paginator->sort('cargo');?></th>
			<th><?php echo $this->Paginator->sort('entidad');?></th>
			<th class="actions"></th>
	</tr>
	<?php
	$i = 0;
	foreach ($experiencias as $experiencia):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>

		<td><?php echo $experiencia['Experiencia']['empresa']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['fecha_ingreso']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['fecha_retiro']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['actualmente']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['cargo']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['entidad']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $experiencia['Experiencia']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $experiencia['Experiencia']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $experiencia['Experiencia']['id']), null, sprintf(__('Desea eliminar la experiencia de  %s?', true), $experiencia['Experiencia']['empresa'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Pagina %page% de %pages%, mostrando %current% registros de %count% en total, empezando %start%, terminando %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>